<?
require 'global.php';

$gee=$customer;

$oldpwd=''; if (isset($_GET["oldpwd"])) $oldpwd = clean($_GET["oldpwd"]);

//echo $pid.'/'.$varid.'/'.$qty.'/'.$do;
//exit;

$k='no';
$tem=$gee->get_row($customer_id);

if(is_array($tem)){
	if($tem['password']==sha1($oldpwd)) $k=1;
}
else $k= 0;

echo $k;

?>